<!--房型名称-->
<div class="control-group">
  <label class="control-label">产品名称:</label>
  <div class="controls">
    <span class="input-inline"> <%= @product.name  %></span>
  </div>
</div>

<div class="control-group">
  <label class="control-label">产品规格:</label>
  <div class="controls">
    <span class="input-inline"> <%= @product.format  %></span>
  </div>
</div>

<div class="control-group">
  <label class="control-label">产品价格:</label>
  <div class="controls">
    <span class="input-inline"> <%= @product.price  %>&nbsp元</span>
  </div>
</div>

<!--　优惠价　-->
<div class="control-group js-vipprice-change" style="<%= 'display:none' if !@product.vipable %>" >
  <label class="control-label">优惠价:</label>
  <div class="controls">
    <span class="input-inline"> <%= @product.vip_price || 0.0 %></span>&nbsp元
  </div>
</div>


<!--图片-->
<div class="group-form images">
  <label class="label-inline" style="">介绍图片:</label>
  <!--房型图片组件-->
  <div class="mssUploadFileContainerShow" data-image-num="<%= @product.images.count(:id)%>">
    <!--第三方插件-->
    <% @product.images.order("id asc").each_with_index do |image,i| %>
      <div class="fileinput fileinput-new" data-provides="" delete-image-id="<%= image.id%>" >

        <div class="fileinput-preview thumbnail" data-trigger="fileinput">
          <img  src="<%= image.url%>">
        </div>
      </div>
    <% end %>
  </div>
</div>


<!--确定 取消-->
<div class="button-submit-cancle" style="margin-left:50px;">
  <%= link_to '修改', edit_ruiqu_custom_product_path(@product), class: 'btn btn-crud button-submit' %>
  <%= link_to '返回', "javascript:history.back(-1)", class: 'btn positio btn-cancel' %>
</div>
